/**
 * 通知 api 封装
 *
 * @Author:    syf
 * @Date:      2025-06-03 17:53:30
 * @Copyright  畅想科技
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const tzApi = {

  /**
   * 分页查询  @author  syf
   */
  queryPage : (param) => {
    return postRequest('/tz/queryPage', param);
  },
  view: (noticeId) => {
    return getRequest(`/tz/view/${noticeId}`);
  },
  queryType : (param) => {
    return postRequest('/tz/queryType', param);
  },
  /**
   * 增加  @author  syf
   */
  add: (param) => {
      return postRequest('/tz/add', param);
  },

  /**
   * 修改  @author  syf
   */
  update: (param) => {
      return postRequest('/tz/update', param);
  },


  /**
   * 删除  @author  syf
   */
  delete: (id) => {
      return getRequest(`/tz/delete/${id}`);
  },

  /**
   * 批量删除  @author  syf
   */
  batchDelete: (idList) => {
      return postRequest('/tz/batchDelete', idList);
  },

};
